#include"queue.h"
#include<stdlib.h>
#include<string.h>

int queue_init(queue* the_queue,int the_init_size){
  the_queue->backing_store = (array_list*)malloc(sizeof(array_list));
  array_list_init(the_queue->backing_store, 1);
  return 0;
}

void* queue_dequeue(queue* the_queue){
  return array_list_remove(the_queue->backing_store, 0);
}

int queue_enqueue(queue* the_queue, void* the_item){
  return array_list_add(the_queue->backing_store, the_item);
}
